package listener;

import com.corundumstudio.socketio.SocketIOClient;
import com.corundumstudio.socketio.SocketIOServer;
import com.corundumstudio.socketio.listener.ConnectListener;

/**
 * @Description
 * @Author szw
 * @Data 2019-12-25 11:37
 * @Version 1.0
 */
public class AppConnectListener implements ConnectListener {

    private SocketIOServer server;

    public AppConnectListener (SocketIOServer server){
        this.server = server;
    }

    @Override
    public void onConnect(SocketIOClient client) {
        System.out.println("{}({}) 进入连接..."+client.getSessionId()+client.getRemoteAddress());
    }
}
